package com.guigu.tms.commons.base.feign;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.base.entity.GoodsType;
import com.guigu.tms.commons.base.entity.TruckType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "tms-base",path = "/base/goodsType",contextId = "zh")
public interface GoodsTypeFeignClient {
    @GetMapping("/GoodsTypeQuery")
    PageInfo<GoodsType> GoodsTypeQuery(@RequestParam("name")String name,@RequestParam("TruckTypeId") String TruckTypeId,@RequestParam("num") Integer num,@RequestParam("size") Integer size);

    @RequestMapping("/deleteGoodsType")
   int deleteGoodsType(@RequestParam("id") int id);

    @RequestMapping("/updateById")
    boolean updateById(@RequestBody GoodsType goodsType);
    //添加
    @PostMapping("/save")
    boolean save(@RequestBody GoodsType entity);

}
